<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>慢慢买</title>
  <script src="lib/flexible/flexible.js"></script>
  <link rel="icon" href="favicon.ico">
  <link rel="stylesheet" href="css/common.css">
  <link rel="stylesheet" href="css/category.css">
</head>
<body>
  <div class="container">
    <!--头部-->
    <div class="header">
      <h1 class="logo fl">
        <a href="index.html" >
          <img src="images/header_logo.png" alt="">
        </a>
      </h1>
      <div class="download fr">
        <a href="#">
          <img src="images/header_app.png" alt="">
        </a>
      </div>
    </div>
    <!--主体-->
    <div class="main">
      <div class="search">
        <input type="text"placeholder="请输入你想比价的商品"><button>搜索</button>
      </div>
      <!--分类导航-->
      <div class="category">
        <ul>
        
        </ul>
      </div>
    </div>
    <!--底部-->
    <div class="footer">
      <div class="footerNav clearfix">
        <a href="#">登录</a>
        <a href="#">注册</a>
        <a href="javascript:;" id="goTop"><img src="images/top.jpg" alt="">回到顶部</a>
        <!--javascript:toBack.goTop();-->
      </div>
      <div class="msg">
        <p>
          <a href="#" class="red">手机APP下载</a>
          <a href="#">慢慢买手机版</a>
          <a href="#">--掌上比价平台</a>
        </p>
        <p><a href="#">手机APP下载</a></p>
      </div>
    </div>
  </div>
  <!--渲染一级菜单-->
  <script type="text/html" id="firstTpl">
    {{ each result v i }}
    <li data-title-id="{{ v.titleId }}">
      <div class="title">
        <a href="javascript:;">{{ v.title }}
          <img src="images/arrow.png" alt="">
        </a>
      </div>
      <div class="info">
        
      </div>
    </li>
    {{ /each }}
  </script>
  <!--渲染二级菜单-->
  <script type="text/html" id="secondTpl">
    <ul class="clearfix">
      {{ each result v i }}
        <li><a href="productList.html?categoryId={{ v.categoryId }}">{{ v.category }}</a></li>
      {{ /each }}
    </ul>
</script>
  <script src="lib/jquery/jquery-1.12.4.js"></script>
  <script src="lib/artTemplate/template-web.js"></script>
  <script src="js/common.js"></script>
  <script src="js/category.js"></script>
</body>
</html>